package thread;

/**
 * @author: 成金乘
 * @date: 2022/11/29 19:08
 * @description:
 */
//继承 Thread, 重写 run, 使用匿名内部类
public class ThreadDemo3 {
    public static void main(String[] args) {
        Thread t = new Thread(){
            @Override
            public void run() {
                System.out.println("hello");
            }
        };
        t.start();
    }
}
